1 using System.Collections;
2 using
System.Collections.Generic;
3 using
UnityEngine;
4
5 public
static class Game {
6
7     
public static string IsMucisOn = "IsMucisOn";
8
9     
public static int GetMusicState()
10     {
11         
return PlayerPrefs.GetInt(Game.IsMucisOn);
12     }
13
14     
public static void SetMusicState(int state)
15     {
16         PlayerPrefs.SetInt(Game.IsMucisOn, state);
17     }
18 }



Trò chơi Halloween vui nhộn trong UNITY Engine 10.803 lượt xem

Gõ tìm kiếm nhanh...